package beans;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
@Table(name = "test_vuln_master")
public class VulnerabilityMaster implements Serializable, Cloneable {

	private static final long serialVersionUID = 1L;

	public String getVulId() {
		return vulId;
	}

	public void setVulId(String vulId) {
		this.vulId = vulId;
	}

	@Id
	@Column(name = "VUL_ID")
	private String vulId;

	@Column(name = "APP_IP")
	private String appIp;

	@Column(name = "APP_ID")
	private String appId;

	@Column(name = "HOST_PORT")
	private int hostPort;

	@Column(name = "LAST_FIXED_DATETIME")
	private Date lastFixedDateTime;

	@Column(name = "LAST_FOUND_DATETIME")
	private Date lastFoundDateTime;

	@Column(name = "LAST_SERVICE_MOD_DATETIME")
	private Date lastServiceModDateTime;

	@Column(name = "LAST_TEST_DATETIME")
	private Date lastTestDateTime;

	@Column(name = "LAST_UPDATE_DATETIME")
	private Date lastUpdateDateTime;
	@Column(name = "PATCHABLE")
	private int patchable;
	@Column(name = "PCI_FLAG")
	private int pciFlag;
	@Column(name = "PROTOCOL")
	private String protocol;
	@Column(name = "PUBLISHED_DATETIME")
	private Date publishedDateTime;
	@Column(name = "QUALIS_ID")
	private int qualisId;
	@Column(name = "QUALIS_TICKETS")
	private int[] qualisTickets;
	@Column(name = "QUALIS_TYPE")
	private String qualisType;
	@Column(name = "SEVERITY_LEVEL")
	private String severityLevel;
	@Column(name = "CRAWL_ID")
	private String crawlId;
	/*@Column(name = "CREATED_AT")
	private Date createdAt;
	*/@Column(name = "CREATED_AT_MS")
	private Long createdAtMS;
	@Column(name = "DAYS_TO_LIVE")
	private int daysToLive;
	@Column(name = "FAIL_ON_EMPTY")
	private Boolean failOnEmpty;
	
	@Column(name = "FIRSTSEEN")
	private Date firstseen;
	@Column(name = "HASH")
	private Long hash;
	/*public Date getCreatedAt() {
		return createdAt;
	}
*/
	public Date getFirstseen() {
		return firstseen;
	}

	public void setFirstseen(Date firstseen) {
		this.firstseen = firstseen;
	}
/*
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}*/

	@Column(name = "ISHASH_CHANGED")
	private Boolean isHashChanged;
	@Column(name = "ISNEW")
	private Boolean isNew;
	@Column(name = "NAME")
	private String name;
	public Long getCreatedAtMS() {
		return createdAtMS;
	}

	public void setCreatedAtMS(Long createdAtMS) {
		this.createdAtMS = createdAtMS;
	}

	@Column(name = "TIMESEEN")
	private Long timeseen;
	@Column(name = "STATUS")
	private char[] status;
	@Column(name = "TICKETNUMBER")
	private String ticketNumber;
	@Column(name = "TITLE")
	private String title;
	@Column(name = "TYPE")
	private String type;
	@Column(name = "VULNERABILITY_TYPE")
	private String vulnerabilityType;

	/*
	 * @Column(name = "LAST_FIXED_DATETIME") private Date lastFixedDateTime;
	 * 
	 * @Column(name = "LAST_FOUND_DATETIME") private Date lastFoundDateTime;
	 * 
	 * @Column(name = "LAST_SERVICE_MOD_DATETIME") private Date
	 * lastServiceModDateTime;
	 * 
	 * @Column(name = "LAST_TEST_DATETIME") private Date lastTestDateTime;
	 * 
	 * @Column(name = "LAST_UPDATE_DATETIME") private Date lastUpdateDateTime;
	 * 
	 * @Column(name = "PATCHABLE") private int patchable;
	 * 
	 * @Column(name = "PCI_FLAG") private int pciFlag;
	 * 
	 * @Column(name = "PROTOCOL") private String protocol;
	 * 
	 * @Column(name = "PUBLISHED_DATETIME") private Date publishedDateTime;
	 * 
	 * @Column(name = "QUALIS_ID") private int qualisId;
	 * 
	 * @Column(name = "QUALIS_TICKETS") private int qualisTickets;
	 * 
	 * @Column(name = "QUALIS_TYPE") private String qualisType;
	 * 
	 * @Column(name = "SEVERITY_LEVEL") private String severityLevel;
	 * 
	 * @Column(name = "CRAWL_ID") private String crawlId;
	 * 
	 * @Column(name = "CREATED_AT") private Date createdAt;
	 * 
	 * @Column(name = "CREATED_AT_MS") private int createdAtMS;
	 * 
	 * @Column(name = "DAYS_TO_LIVE") private int daysToLive;
	 * 
	 * @Column(name = "FAIL_ON_EMPTY") private char failOnEmpty;
	 * 
	 * @Column(name = "FIRSTSEEN") private Date firstseen;
	 * 
	 * @Column(name = "HASH") private int hash;
	 * 
	 * @Column(name = "ISHASH_CHANGED") private char isHashChanged;
	 * 
	 * @Column(name = "ISNEW") private int isNew;
	 * 
	 * @Column(name = "NAME") private String name;
	 * 
	 * @Column(name = "TIMESEEN") private int timeseen;
	 * 
	 * @Column(name = "STATUS") private char status;
	 * 
	 * @Column(name = "TICKETNUMBER") private String ticketNumber;
	 * 
	 * @Column(name = "TITLE") private String title;
	 * 
	 * @Column(name = "TYPE") private String type;
	 * 
	 * @Column(name = "VULNERABILITY_TYPE") private String vulnerabilityType;
	 */
	/*
	 * public String getVulnId() { return vulnId; }
	 * 
	 * public void setVulnId(String vulnId) { this.vulnId = vulnId; }
	 */

	public Date getLastFixedDateTime() {
		return lastFixedDateTime;
	}

	public void setLastFixedDateTime(Date lastFixedDateTime) {
		this.lastFixedDateTime = lastFixedDateTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getAppIp() {
		return appIp;
	}

	public void setAppIp(String appIp) {
		this.appIp = appIp;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public int getHostPort() {
		return hostPort;
	}

	public void setHostPort(int hostPort) {
		this.hostPort = hostPort;
	}

	/*
	 * public date getlastfixeddatetime() { return lastfixeddatetime; }
	 * 
	 * public void setlastfixeddatetime(date lastfixeddatetime) {
	 * this.lastfixeddatetime = lastfixeddatetime; }
	 * 
	 * public date getlastfounddatetime() { return lastfounddatetime; }
	 * 
	 * public void setlastfounddatetime(date lastfounddatetime) {
	 * this.lastfounddatetime = lastfounddatetime; }
	 * 
	 * public date getlastservicemoddatetime() { return lastservicemoddatetime;
	 * }
	 * 
	 * public void setlastservicemoddatetime(date lastservicemoddatetime) {
	 * this.lastservicemoddatetime = lastservicemoddatetime; }
	 * 
	 * public date getlasttestdatetime() { return lasttestdatetime; }
	 * 
	 * public void setlasttestdatetime(date lasttestdatetime) {
	 * this.lasttestdatetime = lasttestdatetime; }
	 * 
	 * public date getlastupdatedatetime() { return lastupdatedatetime; }
	 * 
	 * public void setlastupdatedatetime(date lastupdatedatetime) {
	 * this.lastupdatedatetime = lastupdatedatetime; }
	 * 
	 * public int getpatchable() { return patchable; }
	 * 
	 * public void setpatchable(int patchable) { this.patchable = patchable; }
	 * 
	 * public int getpciflag() { return pciflag; }
	 * 
	 * public void setpciflag(int pciflag) { this.pciflag = pciflag; }
	 * 
	 * public string getprotocol() { return protocol; }
	 * 
	 * public void setprotocol(string protocol) { this.protocol = protocol; }
	 * 
	 * public date getpublisheddatetime() { return publisheddatetime; }
	 * 
	 * public void setpublisheddatetime(date publisheddatetime) {
	 * this.publisheddatetime = publisheddatetime; }
	 * 
	 * public int getqualisid() { return qualisid; }
	 * 
	 * public void setqualisid(int qualisid) { this.qualisid = qualisid; }
	 * 
	 * public int getqualistickets() { return qualistickets; }
	 * 
	 * public void setqualistickets(int qualistickets) { this.qualistickets =
	 * qualistickets; }
	 * 
	 * public string getqualistype() { return qualistype; }
	 * 
	 * public void setqualistype(string qualistype) { this.qualistype =
	 * qualistype; }
	 * 
	 * public string getseveritylevel() { return severitylevel; }
	 * 
	 * public void setseveritylevel(string severitylevel) { this.severitylevel =
	 * severitylevel; }
	 * 
	 * public string getcrawlid() { return crawlid; }
	 * 
	 * public void setcrawlid(string crawlid) { this.crawlid = crawlid; }
	 * 
	 * public date getcreatedat() { return createdat; }
	 * 
	 * public void setcreatedat(date createdat) { this.createdat = createdat; }
	 * 
	 * public int getcreatedatms() { return createdatms; }
	 * 
	 * public void setcreatedatms(int createdatms) { this.createdatms =
	 * createdatms; }
	 * 
	 * public int getdaystolive() { return daystolive; }
	 * 
	 * public void setdaystolive(int daystolive) { this.daystolive = daystolive;
	 * }
	 * 
	 * public char getfailonempty() { return failonempty; }
	 * 
	 * public void setfailonempty(char failonempty) { this.failonempty =
	 * failonempty; }
	 * 
	 * public date getfirstseen() { return firstseen; }
	 * 
	 * public void setfirstseen(date firstseen) { this.firstseen = firstseen; }
	 * 
	 * public int gethash() { return hash; }
	 * 
	 * public void sethash(int hash) { this.hash = hash; }
	 * 
	 * public char getishashchanged() { return ishashchanged; }
	 * 
	 * public void setishashchanged(char ishashchanged) { this.ishashchanged =
	 * ishashchanged; }
	 * 
	 * public int getisnew() { return isnew; }
	 * 
	 * public void setisnew(int isnew) { this.isnew = isnew; }
	 * 
	 * public string getname() { return name; }
	 * 
	 * public void setname(string name) { this.name = name; }
	 * 
	 * public int gettimeseen() { return timeseen; }
	 * 
	 * public void settimeseen(int timeseen) { this.timeseen = timeseen; }
	 * 
	 * public char getstatus() { return status; }
	 * 
	 * public void setstatus(char status) { this.status = status; }
	 * 
	 * public string getticketnumber() { return ticketnumber; }
	 * 
	 * public void setticketnumber(string ticketnumber) { this.ticketnumber =
	 * ticketnumber; }
	 * 
	 * public string gettitle() { return title; }
	 * 
	 * public void settitle(string title) { this.title = title; }
	 * 
	 * public string gettype() { return type; }
	 * 
	 * public void settype(string type) { this.type = type; }
	 * 
	 * public string getvulnerabilitytype() { return vulnerabilitytype; }
	 * 
	 * public void setvulnerabilitytype(string vulnerabilitytype) {
	 * this.vulnerabilitytype = vulnerabilitytype; }
	 * 
	 * public static long getserialversionuid() { return serialversionuid; }
	 */

	public void onCreate() {

	}


	public Date getLastFoundDateTime() {
		return lastFoundDateTime;
	}

	public void setLastFoundDateTime(Date lastFoundDateTime) {
		this.lastFoundDateTime = lastFoundDateTime;
	}

	public Date getLastServiceModDateTime() {
		return lastServiceModDateTime;
	}

	public void setLastServiceModDateTime(Date lastServiceModDateTime) {
		this.lastServiceModDateTime = lastServiceModDateTime;
	}

	public Date getLastTestDateTime() {
		return lastTestDateTime;
	}

	public void setLastTestDateTime(Date lastTestDateTime) {
		this.lastTestDateTime = lastTestDateTime;
	}

	public Date getLastUpdateDateTime() {
		return lastUpdateDateTime;
	}

	public void setLastUpdateDateTime(Date lastUpdateDateTime) {
		this.lastUpdateDateTime = lastUpdateDateTime;
	}

	public int getPatchable() {
		return patchable;
	}

	public void setPatchable(int patchable) {
		this.patchable = patchable;
	}

	public int getPciFlag() {
		return pciFlag;
	}

	public void setPciFlag(int pciFlag) {
		this.pciFlag = pciFlag;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public Date getPublishedDateTime() {
		return publishedDateTime;
	}

	public void setPublishedDateTime(Date publishedDateTime) {
		this.publishedDateTime = publishedDateTime;
	}

	public int getQualisId() {
		return qualisId;
	}

	public void setQualisId(int qualisId) {
		this.qualisId = qualisId;
	}

	public int[] getQualisTickets() {
		return qualisTickets;
	}

	public void setQualisTickets(int[] qts) {
		this.qualisTickets = qts;
	}

	public String getQualisType() {
		return qualisType;
	}

	public void setQualisType(String qualisType) {
		this.qualisType = qualisType;
	}

	public String getSeverityLevel() {
		return severityLevel;
	}

	public void setSeverityLevel(String severityLevel) {
		this.severityLevel = severityLevel;
	}

	public String getCrawlId() {
		return crawlId;
	}

	public void setCrawlId(String crawlId) {
		this.crawlId = crawlId;
	}
/*
	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String created_at_timestamp) {
		this.createdAt = created_at_timestamp;
	}*/
/*
	public Long getCreatedAtMS() {
		return createdAtMS;
	}

	public void setCreatedAtMS(Long createdAtMS2) {
		this.createdAtMS = createdAtMS2;
	}*/

	public int getDaysToLive() {
		return daysToLive;
	}

	public void setDaysToLive(int daysToLive) {
		this.daysToLive = daysToLive;
	}

	public Boolean getFailOnEmpty() {
		return failOnEmpty;
	}

	public void setFailOnEmpty(Boolean failOnEmpty2) {
		this.failOnEmpty = failOnEmpty2;
	}
/*
	public String getFirstseen() {
		return firstseen;
	}

	public void setFirstseen(String firstseen) {
		this.firstseen = firstseen;
	}
*/
	public Long getHash() {
		return hash;
	}

	public void setHash(Long hash2) {
		this.hash = hash2;
	}

	public Boolean getIsHashChanged() {
		return isHashChanged;
	}

	public void setIsHashChanged(Boolean isHashChanged2) {
		this.isHashChanged = isHashChanged2;
	}

	public Boolean getIsNew() {
		return isNew;
	}

	public void setIsNew(Boolean isNew2) {
		this.isNew = isNew2;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getTimeseen() {
		return timeseen;
	}

	public void setTimeseen(Long timeseen2) {
		this.timeseen = timeseen2;
	}
	
	public char[] getStatus() {
		return status;
	}

	public void setStatus(char[] status2) {
		this.status = status2;
	}

	public String getTicketNumber() {
		return ticketNumber;
	}

	public void setTicketNumber(String ticketNumber) {
		this.ticketNumber = ticketNumber;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getVulnerabilityType() {
		return vulnerabilityType;
	}

	public void setVulnerabilityType(String vulnerabilityType) {
		this.vulnerabilityType = vulnerabilityType;
	}


}
